<template>
    <div class="VistorHead">
        <h1>
            <span class="floatLeft back" @click="$store.commit('back')">
                <</span>
                    {{title}}
                    <span v-if="title2" style="font-size:12px"> - {{title2}}</span>
        </h1>

    </div>
</template>

<script>

    export default {
        name: '',
        props: ["title","title2"],
        data() {
            return {

            }
        },
        components: {

        },
        mounted() {

        }
    }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
    .VistorHead>h1 {
        font-size: 20px;
        background-color: black;
        color: white;
        padding: 5px 0;
        position: relative;
        height: 26px;

    }

    .back {
        position: absolute;
        width: 30px;
        font-size: 26px;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        line-height: 36px;
    }
</style>